﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;

namespace Jewelnoid
{
    class Particle : Object2D
    {
        public Vector2 speed;

        public Particle(Texture2D texture, Vector2 position, Color color, Vector2 speed)
            : base(texture, position, color)
        {
            this.speed = speed;
        }

        public void update()
        {
            this.position += this.speed;

            this.alpha -= 0.05f;
        }
    }
}
